-- GENERATED SPELL FOR [Mo'grosh Shaman] --


function spell0_1181(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1181', 3000, 1)
end

function spell1_1181(pUnit, Event) --@Quick Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(3229,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1181', 7000, 1)
end

function Sorts_1181(pUnit, Event)
local choix_sorts_1181 = math.random(0, 1)
if choix_sorts_1181 == 0 then
pUnit:RegisterEvent('spell0_1181', 1, 1)
end
if choix_sorts_1181 == 1 then
pUnit:RegisterEvent('spell1_1181', 1, 1)
end
end

function mob1181_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1181', math.random(1500, 3000), 1)
end

function mob1181_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1181_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1181_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1181, 1, 'mob1181_Action')
RegisterUnitEvent(1181, 2, 'mob1181_Leave')
RegisterUnitEvent(1181, 3, 'mob1181_Kill')
RegisterUnitEvent(1181, 4, 'mob1181_Die')
